package com.wp.design.structural.bridge;

import com.wp.design.structural.adapter.classAdapter.Target;

public class Test {
	public static void main(String[] args) {
		Qiao target = new TargetB1();
		From a = new FromA(target);
		a.from();
		target.target();

		/*// 农业银行的活期帐号
		Bank abcBank = new ABCBank(new SavingAccount());
		Account abcA = abcBank.openAccount();
		abcA.showAccountType();
		// 工商银行的活期帐号
		Bank icbcBank = new ICBCBank(new SavingAccount());
		Account icbcA = icbcBank.openAccount();
		icbcA.showAccountType();
		// 工商银行的定期帐号
		Bank icbcBank2 = new ICBCBank(new DepositAccount());
		Account icbcA2 = icbcBank2.openAccount();
		icbcA2.showAccountType();*/
	}
}
